﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddNews.aspx.cs" Inherits="NewsManagement_AddNews" %>
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"  %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>添加新闻</title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        #txtCreatedTime
        {
            width: 199px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" >
    <div class="zt mainCenter">
        <div class="contentBody">
            <div class="title">
                新闻信息管理-->添加新闻</div>
            <table style="width: 100%; color: #336699;" class="ta1">
                <tr>
                    <td class="ta2 tag">
                        新闻分类 ：
                    </td>
                    <td class="ta2 ">
                        <asp:DropDownList ID="ddlNewsCategory" runat="server" DataTextField="title" DataValueField="id"
                            AppendDataBoundItems="True">
                            <asp:ListItem Value="-1">--未选择分类--</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lblManage" runat="server" Style="color: Red"></asp:Label>
                        点击<a href="AddNewsCategory.aspx">这里</a>添加新闻类别
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlNewsCategory"
                            ErrorMessage="请先添加新闻类别"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        新闻标题 ：
                    </td>
                    <td class="ta2 ">
                        <asp:TextBox ID="txtNewsTitle" runat="server" Width="258px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNewsTitle"
                            ErrorMessage="请填写新闻标题"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        新闻内容 ：
                    </td>
                    <td class="ta2 ">
             <%--         
             <FCKeditorV2:FCKeditor ID="edtrText" runat="server">
                        </FCKeditorV2:FCKeditor>--%>
                                <FTB:FreeTextBox id="edtrText" runat="server" Width="800px" Height="400px" SupportFolder="~/FreeTextBox"   JavaScriptLocation="ExternalFile"   ButtonImagesLocation="ExternalFile"   ToolbarImagesLocation="ExternalFile"/>
                        <asp:Label ID="lblNewsContent" Style="color: Red" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        图片：
                    </td>
                    <td class="ta2">
                        <asp:FileUpload ID="fuNewsImage" runat="server" CssClass="inp1" />
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        作者：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtAuthor" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <%--	<tr id="trc" runat="server">
	<td class="ta2 tag" style="display:none">
		等待审核：</td>
	<td class="ta2 " style="display:none">
        <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
            RepeatDirection="Horizontal" CssClass="inp2">
            <asp:ListItem Value="0">等待审核</asp:ListItem>
            <asp:ListItem Value="1">审核通过</asp:ListItem>
        </asp:RadioButtonList>
	   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
            ControlToValidate="RadioButtonList1" ErrorMessage="请选择发布状态"></asp:RequiredFieldValidator>
	</td>
	</tr>--%>
	<tr id="trc" runat="server">
	<td class="ta2 tag">
		是否发布 ：</td>
	<td class="ta2">
		<asp:RadioButtonList ID="RadioButtonList1" runat="server" 
            RepeatDirection="Horizontal">
            <asp:ListItem Value="1" Selected="True">发布</asp:ListItem>
            <asp:ListItem Value="0">禁用</asp:ListItem>
        </asp:RadioButtonList>
	</td></tr>
            </table>
            <asp:Button ID="btnAdd" runat="server" Text="提交" OnClick="btnAdd_Click" CssClass="button">
            </asp:Button>
            &nbsp;
            <input type="button" value="返回" onclick="window.history.go(-1)" class="button" id="back"
                runat="server" />
        </div>
    </div>
    </form>
</body>
</html>
